<script>
	export default {
		onLaunch() {
			// this.getToken();
		},
		methods: {
			getToken() {
				let userInfo = this.$Cookies.get('userInfo');
				let token = this.$Cookies.get('token');
				if( !token ) {
					return;
				} else if( userInfo === 'driver' ) {
					this.$Router.push('/pages/driver/index');
				} else if( userInfo === 'passenger' ) {
					this.$Router.push('/pages/appointment/index');
				}
			}
		}
	}
</script>

<style lang="scss">
	/* iconfont图标 */
	@import './static/fonts/iconfont.css';
	/*每个页面公共css */
	@import './static/style/global.scss';
</style>
